<template>
  <div >
    <div class="back-btn" v-show="showBack" @click="goBack">
      <div class="back-icon"></div>
      <span>返回</span>
    </div>
    <Traffic></Traffic>
  </div>
</template>

<script setup lang="ts">
import Traffic from './traffic.vue'
import { ref } from 'vue'
type Props = {
  msg: string
}
const showBack = ref(true)
const { msg } = defineProps<Props>()
console.log(msg)
const count = ref(0)

const goBack = () => {
  console.log(showBack, count)
}
</script>

<style lang="less" scoped>

.back-btn{
  position: absolute;
  width: 80px;
  height: 36px;
  right: 520px;
  top: 68px;
  pointer-events: auto;
  padding: 7px 13px;
  background: #1163ff;
  border-radius: 4px;
  color: #FFF;
  font-size: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
  z-index: 1100;
  box-sizing: border-box;
}
.back-icon{
  width: 20px;
  height: 20px;
  margin-right: 4px;
  background: url(../../assets/img/traffic/backIcon.png) no-repeat center 100%/100%;
  background-size: cover;
}
</style>
